//
//  common.swift
//  新浪微博
//
//  Created by dafei on 16/5/21.
//  Copyright © 2016年 itheima. All rights reserved.
//

import UIKit

let ScreenWidth = UIScreen.mainScreen().bounds.size.width
let ScreenHeight = UIScreen.mainScreen().bounds.size.height

//用户登录授权配置信息
let client_id = "238294455"
let client_secret = "9fe7e20f239c6f2fad2fe9e92eb2a75e"
let redirect_uri = "http://www.baidu.com"


//定义通知的名称
let SwitchRootViewController = "SwitchRootViewController"
//定义通用错误
let AppErrorTip = "网络君正在睡觉,请稍后再试"

func randomColor() -> UIColor {
    let  red = CGFloat(random() % 256)/255.0
    let blue = CGFloat(random() % 256) / 255.0
    let green = CGFloat(random() % 256) / 255.0
    
    
    return UIColor(red: red, green: green, blue: blue, alpha: 1)

}

